﻿<%@ Page Title="" Language="C#" MasterPageFile="~/backend/Admin.Master" AutoEventWireup="true" CodeBehind="ClassEdit.aspx.cs" Inherits="mamnontuoitho7.backend.ClassEdit"  ValidateRequest="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="AdminTitleContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<script language="javascript" type="text/javascript">
    function ClassEdit_Click() {

        var className = trim(document.getElementById("<%= txtClassName.ClientID %>").value);

        if (className == null || className == "") {
            alert("Tên lớp không được để trống.");
            document.getElementById("<%= txtClassName.ClientID %>").focus();
            return false;
        }
    }


    function trim(str) {
        return str.replace(/^\s+|\s+$/g, "");
    }
</script>

<form id="form1" runat="server">
    <!-- Begin one column tab content window -->
    <div class="onecolumn">
	    <div class="header">
		    <span>Chỉnh Sửa Lớp</span>
		    <div class="switchbutton">
                  <a href="ClassList.aspx" class="buttons stylebutton">Danh sách lớp</a>
                  <a href="ClassCreate.aspx" class="buttons stylebutton">Thêm lớp</a>
		    </div>
	    </div>
	    <br class="clear"/>
	    <div class="content">
		    <div id="tab2_content" class="tab_content">
                <div style="width:710px;">
                    <div>
                        Khối lớp:<br />
                        <asp:DropDownList ID="ddlClassCategory" runat="server" Width="350px"></asp:DropDownList></div><br />
                    <div>
                        Tên lớp:<br />
                        <asp:Textbox ID="txtClassName" runat="server" MaxLength="50"  Width="340px" ></asp:Textbox></div><br />
                       
                    <div>
                        Vị trí lớp:<br />
                        <asp:TextBox ID="txtClassPosition" runat="server" MaxLength="150" style="width:340px;"></asp:TextBox></div><br />
 
                    <p>
				        <asp:Button ID="btClassEdit" runat="server" onclick="btClassEdit_Click" Text="Cập nhật" OnClientClick="return ClassEdit_Click()" />
                        <asp:Button ID="btClassReset" runat="server" onclick="btClassReset_Click" Text="Làm lại" /></p>
                </div>
	  		    <br class="clear"/><asp:Label ID="lblNoticeClass" runat="server" 
                    visible="False"   ForeColor="Red" Font-Bold="true" Font-Size="Medium" ></asp:Label>
		    </div>
	    </div>
    </div>
    <!-- End one column tab content window -->
</form>
</asp:Content>
